package com.whc.gulimall.product.vo;

import com.whc.gulimall.product.dto.SecKillSkuDTO;
import com.whc.gulimall.product.entity.SkuImagesEntity;
import com.whc.gulimall.product.entity.SkuInfoEntity;
import com.whc.gulimall.product.entity.SpuInfoDescEntity;
import lombok.Data;

import java.util.List;

/**
 * SkuItemVo
 *
 * @author angaoen
 */
@Data
public class SkuItemVo {

    /**
     * sku基本信息的获取:如标题
     */
    private SkuInfoEntity skuInfoEntity;

    /**
     * sku的图片信息
     */
    private List<SkuImagesEntity> images;

    /**
     * 获取spu的销售属性组合。每个attrName对应一个value-list
     */
    private List<SkuItemSaleAttrVo> saleAttr;

    /**
     * spu详细信息
     */
    private SpuInfoDescEntity desp;

    /**
     * spu的规格参数
     */
    private List<SpuItemAttrGroup> attrGroup;

    /**
     * 秒杀商品数据
     */
    private SecKillSkuDTO secKillSkuDTO;

    /**
     * 是否有货
     */
    private Boolean hasStock = true;
}
